<?php



namespace app\common\model;



use think\Model;



class Company extends Model

{

    // 表名

    protected $name = 'company';



    // 自动写入时间戳字段

    protected $autoWriteTimestamp = false;



    // 定义时间戳字段名

    protected $createTime = false;

    protected $updateTime = false;



    // 追加属性

    protected $append = [];


    public function community(){
        return $this->belongsTo('Community','community_code','code');
    }
}

